import socket as line
import time

s = line.socket(line.AF_INET, line.SOCK_DGRAM)
s.setsockopt(line.SOL_SOCKET, line.SO_BROADCAST, 1)
network = '192.168.1.10'

def send(n):
    s.sendto(n.encode("utf-8"), (network, 1405))

def timen(n, s):
    send(n)
    time.sleep(s)
    send('Stop')

timen('Back', 0.1)